import sys
from bs4 import BeautifulSoup

def parse_table_row(html_row):
    # 使用BeautifulSoup解析HTML行
    soup = BeautifulSoup(html_row, 'html.parser')
    # 找到所有的<td>标签
    cells = soup.find_all('td')
    # 提取每个<td>标签中的文本内容
    row_data = [cell.get_text(strip=True) for cell in cells]
    return row_data

for line in sys.stdin:
    row_data = parse_table_row(line.strip())
    print(row_data)

